package edu.ynu.se.xiecheng.achitectureclass.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

@Getter
@Setter
@Entity
@Where(clause = "is_deleted = 0")
public class Greenhouse extends LogicEntity {

    @Column(name = "name", nullable = false)
    private String name;

    @Column(name = "address", nullable = false)
    private String address;

    @Column(name = "area")
    private Double area;  // 面积，单位可以是平方米

    @Column(name = "box_no", nullable = false)
    private String boxNo;  // 大棚对应的设备编号
} 